package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author huang lu
 * @since 2019-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SmkShop extends Model<SmkShop> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "shop_id", type = IdType.AUTO)
    private Long shopId;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 店铺名称
     */
    private String shopName;
    /**
     * 店铺场所 （1-10）学校，医院/诊所，商店/超市，餐饮场所，宾馆/旅馆，娱乐/休闲场所，网吧，美容/美发/洗浴场所，生产/加工企业，其他
     */
    private Integer shopPlace;

    /**
     * 负责人电话
     */
    private String managerMobile;

    /**
     * 负责人姓名
     */
    private String managerName;

    /**
     * 店铺地址
     */
    private String addr;

    /**
     * 编号，（保留字段用于排序）
     */
    private String code;

    /**
     * 责任书路径
     */
    private String dutyLetter;

    /**
     * 店铺照片
     */
    private String picture;
    /**
     * 店铺平面图
     */
    private String shopMap;
    /**
     * 微信openid
     */
    private String openid;

    /**
     * 微信头像
     */
    private String wxImage;

    /**
     * 微信名称
     */
    private String wxName;

    /**
     * 报警联系人
     */
    private String alarmNotifier;

    /**
     * 部门级联id
     */
    private String deptCasc;

    /**
     * 纬度
     */
    private String lat;

    /**
     * 经度
     */
    private String lng;

    /**
     * 备注
     */
    private String remark;

    private Long joinBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime joinDate;

    @TableField(exist = false)
    private String devCount;
    /**
	 * 部门名称
	 */
    @TableField(exist = false)
    private String depName;
    
        /**
	 * 部门级联id
	 */
    @TableField(exist = false)
	private String cascader;


    @Override
    public String toString() {
        return "SmkShop{" +
        "shopId=" + shopId +
        ", deptId=" + deptId +
        ", shopName=" + shopName +
        ", managerMobile=" + managerMobile +
        ", managerName=" + managerName +
        ", addr=" + addr +
        ", code=" + code +
        ", dutyLetter=" + dutyLetter +
        ", picture=" + picture +
        ", openid=" + openid +
        ", wxImage=" + wxImage +
        ", wxName=" + wxName +
        ", alarmNotifier=" + alarmNotifier +
        ", deptCasc=" + deptCasc +
        ", lat=" + lat +
        ", lng=" + lng +
        ", remark=" + remark +
        ", joinBy=" + joinBy +
        ", joinDate=" + joinDate +
        "}";
    }

    public Object clone() {   

        try {   

            return super.clone();   

        } catch (CloneNotSupportedException e) {   

            return null;   

        }   

    } 
}
